import http from "@/utils/http";

// 分页
export const activityPage = (params) =>
  http.get("/adminapi/activity/info/page", params);

//详情
export const activityDetail = (id) =>
  http.get(`/adminapi/activity/info/detail/${id}`);

// 新增
export const activityAdd = (data) =>
  http.post("/adminapi/activity/info/add", data);

// 编辑
export const activityEdit = (data) =>
  http.post("/adminapi/activity/info/edit", data);

// 同步
export const activitySync = () => http.post("/adminapi/activity/info/sync");
